<!DOCTYPE html>


<html xmlns:layout="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml" layout:decorator="themes/default/partial/base">




    <div layout:fragment="content" class="main-content index-page clearfix">
        <div class="post-lists">
            <div class="post-lists-body" >

                <div class="post-list-item" th:each="content:${result.rows}">
                    <div class="post-list-item-container">
                        <div class="item-thumb bg-deepgrey"  th:style="'background-image:url(' + @{${content.image}?${content.image}:'img/admin-login-bg.jpg'} + ');'"></div>

                        <a th:href="'/content/view/'+${content.id}">
                            <div class="item-desc">

                                <p  th:text="${content.title}"></p>
                            </div>
                        </a>
                        <div class="item-slant reverse-slant bg-deepgrey"></div>
                        <div class="item-slant"></div>
                        <div class="item-label">
                            <div class="item-title"><a th:href="'/content/view/'+${content.id}" th:text="${content.title}"></a>
                            </div>
                            <div class="item-meta clearfix">
                                <div class="item-meta-cat" th:text="${content.type}">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>

    <div layout:fragment="page" class="main-content index-page clearfix">
            <div class="tcdPageCode"></div>
        <script  type="text/javascript"  th:inline="javascript">
    /*<![CDATA[*/

      	$(".tcdPageCode").createPage({
            pageCount:  /*[[${result.totalPages}]]*/,
            current: /*[[${result.page}]]*/,
            backFn: function(p) {
                search(p);
            }
        });

        //查询方法
        function search(p) {
            location="/?page="+p;

        }
				/*]]>*/

    </script>
    </div>



</html>